﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:iFinance.Controls" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Style TargetType="local:ValidationInput">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ValidationInput">
                    <StackPanel x:Name="LayoutRoot" Background="{TemplateBinding Background}" Orientation="Horizontal">
                        <sdk:Label x:Name="PART_DisplayName" Width="{TemplateBinding DisplayNameWidth}" Height="{TemplateBinding DisplayNameHeight}" IsTabStop="False"/>
                        <ContentPresenter x:Name="PART_Input" Margin="4,0" Width="{TemplateBinding InputWidth}" Height="{TemplateBinding InputHeight}"/>
                        <sdk:DescriptionViewer x:Name="PART_Description" IsTabStop="False"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
